<?php
namespace app\common\enum;

class Sex extends Base
{
	protected static $options = [1 => '男', 2 => '女'];
    protected static $codeOptions = ['nan' => 1, 'nv' => 2];

    public static function code2key($code) {
        return static::$codeOptions[$code];
    }

    public static function showText($key) {
        return static::$options[$key];
    }


}